package chenshuaiwen.dao;

import chenshuaiwen.domain.entity.BaseEntity;
import chenshuaiwen.domain.vo.Result;

import java.util.Collection;
import java.util.List;
/**
 * 数据访问层-通用数据接口
 *
 * @author 陈帅闻
 * @since 2025/6/16 16:01
 */
public interface IBaseDao <Entity extends BaseEntity>{

    boolean  existsById(int id);

    Entity findById(int id);

    Collection<Entity> list();

    Entity save(Entity dto);

    Entity delete(int id);

}
